package com.qingfeng.core.data;

/**
 * @description: 结果数据
 * @author:LWY
 * @date: 2017/10/23 13:59
 * @modified:
 */
public class ResultData {
    public static final int SUCCESS = 200;
    public static final int FAIL = -1;
    //结果代码，200为成功，其他的为失败
    private Integer code;
    //结果描述
    private String desc;
    //结果数据
    private Object data;

    public ResultData(Integer code, String desc, Object data) {
        this.code = code;
        this.desc = desc;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
